import { createApp } from 'vue'
import { createPinia } from 'pinia'
import 'virtual:windi.css'
import App from './App.vue'
import router from './router'
import '@/styles/index.less'
import '@/router/permission'; // 权限控制
import { useElIcon } from '@/utils/setGlobal';

import { directive } from '@/directive';
const app = createApp(App)

app.use(createPinia())
app.use(router)
useElIcon(app) // 注册Ant图标
// 注册指令
directive(app);
app.mount('#app')
